<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'newFile.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<LINK href="<%=basePath%>css/style.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
<script Language="JavaScript">

function CheckForm()
{
   if(document.form1.fileName.value=="")
   { alert("文件名称不能为空！");
     return false;
   }

   document.form1.OP.value="";

   return true;
}


</script>

</head>

<body class="bodycolor" topmargin="5">


<table border="0" width="100%" cellspacing="0" cellpadding="3"
	class="small">
	<tr>
		<td class="Big"><img src="<%=basePath%>/img/file/notify_new.gif"
			align="absmiddle"><b><span class="Big1"> 上传文件</span></b></td>
	</tr>
</table>

<form action="FileCenterServlet?action=newFile&parentID=${parentId }"
	method="post" name="form1" enctype="multipart/form-data">
<table class="TableBlock" width="100%" align="center">
	<tr>
		<td nowrap class="TableData">文件名称：</td>
		<td class="TableData"><input type="text" name="fileName"
			size="50" maxlength="100" class="BigInput"></td>
	</tr>

	<tr>
		<td nowrap class="TableData" valign="top">文件内容：</td>
		<td class="TableData">
		<div><script type="text/javascript">
    var fck = new FCKeditor("fileContext");
    fck.BasePath = "fckeditor/";
    fck.Create();
    </script></div>
		</td>
	</tr>

	<tr>
		<td nowrap class="TableData">文件路径：</td>
		<td class="TableData"><input type="file" name="fileURL"
			class="BigInput" /></td>
	</tr>
	<tr align="center" class="TableControl">
		<td colspan="2" nowrap><input type="hidden" name="parentID"
			value="${parentId }"> <input type="submit" value="确定"
			class="BigButton">&nbsp;&nbsp; <input type="button"
			value="返回" class="BigButton" onClick="javascript:history.go(-1)">
		</td>
	</tr>
</table>
</form>
</body>
</html>
